<!doctype html>
<html>
<head>
    <!--Setting-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="apple-mobile-web-app-capable"  content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no">
    
    
    <!--Simple SEO-->


<meta name="robots" content=all />
<meta name="google" content=all />
<meta name="googlebot" content=all />
<meta name="verify" content=all />
    <!--Title-->

<title>MIAbon&#39;s blog</title>

<link rel="alternate" href="/atom.xml" title="MIAbon&#39;s blog" type="application/atom+xml">


<link rel="icon" href="/favicon.ico">

    
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/pages/article-exp.css">
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/thirdParty/highlight/github.css">

    <!--script-->


<script src="http://cdn1.lncld.net/static/js/3.2.1/av-min.js"></script>
<script>
  var appId = "i7AHmC7NPbPtgS3YxT67dRIc-9Nh9j0Va";
  var appKey = "g6TKbY8O4TsCDMcemoC3STvQ";
  var region = "";
  AV.init({
    appId: appId,
    appKey: appKey,
    region: region
  });
</script>


<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

<!--<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>-->


    
    
</head>

<body id="normal">
<!--[if lte IE 8]>
<style>
    html{ font-size: 1em }
</style>
<![endif]-->
<!--[if lte IE 9]>
<style>
    header{ top: 71px; position: absolute!important;}
    #container{padding-top: 151px!important;}
</style>
<div style="position:fixed;z-index:9999;left:0;top:0;width:100%;height:70px;background-color:#e0e0e0;color:#396CA5;border-bottom:1px solid #cecece;text-align:center;line-height:70px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis">你使用的浏览器版本过低，为了你更好的阅读体验，请更新浏览器的版本或者使用其他现代浏览器，比如Chrome、Firefox、Safari等。</div>
<![endif]-->

<div id="wrap">
    <header >
    <div id="site-meta">
        <a href="/" id="logo">
            <h1 class="title">MIAbon&#39;s blog</h1>
        </a>
        
    </div>
    <ul id="nav">
        
            <li><a href="/"><i class="fa fa-home"></i>首页</a></li>
        
            <li><a href="/atom.xml"><i class="fa fa-rss"></i>RSS</a></li>
        
        <li id="search"><a href="javascript:void(0)"><i class="fa fa-search"></i>搜索</a></li>
    </ul>
</header>

    <div id="container">
        
<ul id="sidebar">
    
    
    
    
<li class="widget widget-normal category">
    <h3 class="fa fa-th widget-title">分类</h3>
    <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/ELK/"><i class="fa" aria-hidden="true">ELK</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Lvs/"><i class="fa" aria-hidden="true">Lvs</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/admin/"><i class="fa" aria-hidden="true">admin</i></a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/ansible/"><i class="fa" aria-hidden="true">ansible</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/aws/"><i class="fa" aria-hidden="true">aws</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/docker/"><i class="fa" aria-hidden="true">docker</i></a><span class="category-list-count">7</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/drone/"><i class="fa" aria-hidden="true">drone</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kernel/"><i class="fa" aria-hidden="true">kernel</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kubernetes/"><i class="fa" aria-hidden="true">kubernetes</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kvm/"><i class="fa" aria-hidden="true">kvm</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/mongodb/"><i class="fa" aria-hidden="true">mongodb</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link current" href="/categories/python/"><i class="fa" aria-hidden="true">python</i></a><span class="category-list-count">9</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/share/"><i class="fa" aria-hidden="true">share</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/web/"><i class="fa" aria-hidden="true">web</i></a><span class="category-list-count">12</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/zabbix/"><i class="fa" aria-hidden="true">zabbix</i></a><span class="category-list-count">3</span></li></ul>
</li>


    
    
<li class="widget widget-normal archive">
  <h3 class="fa fa-archive widget-title">归档</h3>
    <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/"><i class="fa" aria-hidden="true">二月 2018</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/"><i class="fa" aria-hidden="true">一月 2018</i></a><span class="archive-list-count">8</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/"><i class="fa" aria-hidden="true">十二月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/"><i class="fa" aria-hidden="true">十一月 2017</i></a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/"><i class="fa" aria-hidden="true">十月 2017</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/"><i class="fa" aria-hidden="true">九月 2017</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/"><i class="fa" aria-hidden="true">八月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/"><i class="fa" aria-hidden="true">五月 2017</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/"><i class="fa" aria-hidden="true">四月 2017</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/"><i class="fa" aria-hidden="true">三月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/01/"><i class="fa" aria-hidden="true">一月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/"><i class="fa" aria-hidden="true">十二月 2016</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/"><i class="fa" aria-hidden="true">十一月 2016</i></a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/"><i class="fa" aria-hidden="true">十月 2016</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/"><i class="fa" aria-hidden="true">八月 2016</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/"><i class="fa" aria-hidden="true">五月 2016</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/"><i class="fa" aria-hidden="true">四月 2016</i></a><span class="archive-list-count">8</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/05/"><i class="fa" aria-hidden="true">五月 2015</i></a><span class="archive-list-count">1</span></li></ul>
</li>


    
    
<li class="widget widget-normal tags">
  <h3 class="fa fa-tags widget-title">标签云</h3>
  <div class="tagcloud-content">
    
      <a href="/tags/drone/" style="font-size: 0.14rem; color: #69c">drone</a> <a href="/tags/linux/" style="font-size: 0.2rem; color: #0a407c">linux</a> <a href="/tags/kernel/" style="font-size: 0.16rem; color: #4f83b8">kernel</a> <a href="/tags/ELK/" style="font-size: 0.14rem; color: #69c">ELK</a> <a href="/tags/ansible/" style="font-size: 0.14rem; color: #69c">ansible</a> <a href="/tags/swarm/" style="font-size: 0.14rem; color: #69c">swarm</a> <a href="/tags/docker/" style="font-size: 0.18rem; color: #215690">docker</a> <a href="/tags/firewalld/" style="font-size: 0.14rem; color: #69c">firewalld</a> <a href="/tags/zabbix/" style="font-size: 0.16rem; color: #4f83b8">zabbix</a> <a href="/tags/aws/" style="font-size: 0.14rem; color: #69c">aws</a> <a href="/tags/web/" style="font-size: 0.16rem; color: #4f83b8">web</a> <a href="/tags/python/" style="font-size: 0.18rem; color: #215690">python</a> <a href="/tags/spider/" style="font-size: 0.17rem; color: #386da4">spider</a>
  </div>
</li>


    
    
<li class="widget widget-normal friends-link">
    <h3 class="fa fa-globe widget-title">友链</h3><br/>

    
        <a href="http://zhengwei666.wang" class="fa" target="_blank">zhengwei</a>

    
        <a href="https://you-deng.github.io" class="fa" target="_blank">dengyou</a>

    
        <a href="http://www.systemd.cn" class="fa" target="_blank">langyaoliang</a>

    
        <a href="http://www.chen-hao.com.cn/" class="fa" target="_blank">chenhao</a>

    
        <a href="http://www.yulongjun.com" class="fa" target="_blank">yulongjun</a>

    

</li>

    
</ul>


        <ul id="main">
    

    
    
    
    
    
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/11/29/Linux升级内核开启BBR的好处/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/11/29/Linux升级内核开启BBR的好处/">
                <h2 class="article-title">Linux升级内核开启BBR的好处</h2>
            </a>
            
            <p class="article-content">
                如果你关注一些科技新闻，应该会有看过内核在4.9当中加入了一个新的算法，来解决在有一定的丢包率的情况下的带宽稳定的问题，这个是谷歌为我们带来的干货，新的 TCP 拥塞控制算法 BBR (Bottleneck Bandwidth and RTT)，谷歌一向的做法是，先上生产，然后发论文，然后有可能开源，所以这个已经合并到了内核4.9分支当中，算法带来的改变在出的测试报告当中有很详细的数据展示，这个看多了可能反而不知道到底会有什么明显改变，特别是对于我们自己的场景。本篇就是来做一个实践的，开看看在通用的一些场景下，这个改变有多大
实践两台机器node1和node2,node1做一个webserver，node2模拟客户端，用简单的wget来进行测试，环境为同一个交换机上的万兆网卡服务器本次测试只测试一种丢包率的情况就是1%，有兴趣的情况下，可以自己去做些其他丢包率的测试，大多数写在丢包率...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>kernel</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/11/29</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="Linux升级内核开启BBR的好处"
              data-leadcloud-url="/2017/11/29/Linux升级内核开启BBR的好处/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/11/29/Linux升级内核开启BBR的好处/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/11/29/git/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/11/29/git/">
                <h2 class="article-title">git_mark</h2>
            </a>
            
            <p class="article-content">
                Git的首次配置Git 包含了一个叫作 git config 的工具，可以用来获取和设置配置变量，这些变量控制着 Git 外观和操作的方方面面。可以将配置变量存储在三个不同的位置。   

/etc/gitconfig 文件：包含了系统中所有用户及仓库的值。如果你向 git  config 传入 –system 选项，那么它就会专门从该文件读写配置变量。   
~/.gitconfig 或 ~/.gitconfig/git/config 文件：针对的是你自己。你可以通过传入 –global 选项使 Git 专门从该文件中读写配置变量。
当前仓库的 Git 目录（也就是 .git/config ）中的 config 文件：针对单个仓库。

用户身份安装好 Git 后的第一件事就是设置用户名和电子邮件地址。这一步非常重要，因为 Git 的每一次提交都需要用到这些信息，而且还会被写入到所创...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>admin</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/11/29</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="git_mark"
              data-leadcloud-url="/2017/11/29/git/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/11/29/git/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/11/20/ELK简介/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/11/20/ELK简介/">
                <h2 class="article-title">ELK简介</h2>
            </a>
            
            <p class="article-content">
                ELK 协议栈介绍及体系结构ELK 其实并不是一款软件，而是一整套解决方案，是三个软件产品的首字母缩写，Elasticsearch，Logstash 和 Kibana。这三款软件都是开源软件，通常是配合使用，而且又先后归于 Elastic.co 公司名下，故被简称为 ELK 协议栈
ElasticsearchElasticsearch 是一个实时的分布式搜索和分析引擎，它可以用于全文搜索，结构化搜索以及分析。它是一个建立在全文搜索引擎 Apache Lucene 基础上的搜索引擎，使用 Java 语言编写。


实时分析
分布式实时文件存储，并将每一个字段都编入索引
文档导向，所有的对象全部是文档
高可用性，易扩展，支持集群（Cluster）、分片和复制（Shards 和 Replicas）。
接口友好，支持 JSON


LogstashLogstash 是一个具有实时渠道能力的数...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>ELK</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/11/20</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="ELK简介"
              data-leadcloud-url="/2017/11/20/ELK简介/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/11/20/ELK简介/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/10/31/将blog自动化部署/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/10/31/将blog自动化部署/">
                <h2 class="article-title">将blog自动化部署</h2>
            </a>
            
            <p class="article-content">
                前面已经将blog部署到了ecs上，现在利用webhook对本博客实现自动化部署
自动化部署web123456789101112pip install webhookitwebhookit --helpUsage: webhookit [OPTIONS]Options:  -c, --config PATH      The web hook configure file path.  -p, --port INTEGER     The listening port of HTTP server.  --help                 Show this message and exit.webhookit_config &gt; /home/miabon/webhook/config.py #得到模版文件webhookit -c config.py -p 1234
然后...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/10/31</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="将blog自动化部署"
              data-leadcloud-url="/2017/10/31/将blog自动化部署/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/10/31/将blog自动化部署/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/10/31/harbor/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/10/31/harbor/">
                <h2 class="article-title">docker企业级开源仓库harbor</h2>
            </a>
            
            <p class="article-content">
                准备工作下载1.1.2离线安装包1wget https://github.com/vmware/harbor/releases/download/v1.1.2/harbor-offline-installer-v1.1.2.tgz
解压到/usr/local1tar vxf /harbor-offline-installer-v1.1.2.tgz -C /usr/local
需要用到docker-compose,没安装的需要安装12yum install -y python2-pip-8.1.2-5.el7.noarchpip install docker-compose
创建ssl证书12
内网部署还需要建立dns解析修改/usr/local/harbor/harbor.cfg12345678910111213141516171819202122232425262728293031...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>docker</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/10/31</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="docker企业级开源仓库harbor"
              data-leadcloud-url="/2017/10/31/harbor/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/10/31/harbor/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/10/30/drone_启动yaml示例/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/10/30/drone_启动yaml示例/">
                <h2 class="article-title">drone 0.8版本以后启动yaml示例</h2>
            </a>
            
            <p class="article-content">
                12345678910111213141516171819202122232425262728293031version: '2'services:  drone-server:    image: drone/drone:0.8.1    ports:      - 58000:8000      - 59000:9000    volumes:      - .:/var/lib/drone/    restart: always    environment:      - DRONE_OPEN=true      #- DRONE_HOST=$&#123;DRONE_HOST&#125;      #server和agent之间识别      - DRONE_HOST=http://drone.miabon.com      - DRONE_ADMIN=miabon     ...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>drone</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/10/30</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="drone 0.8版本以后启动yaml示例"
              data-leadcloud-url="/2017/10/30/drone_启动yaml示例/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/10/30/drone_启动yaml示例/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/10/30/将HEXO的静态博客部署到阿里云ECS/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/10/30/将HEXO的静态博客部署到阿里云ECS/">
                <h2 class="article-title">将HEXO的静态博客部署到阿里云ECS</h2>
            </a>
            
            <p class="article-content">
                使用阿里云的OSS最近1024节趁着阿里搞活动买了台阿里的最低配，把本博客部署在ECS上，应为是纯静态页面所以直接挂到了OSS上，首先安装OSSFS12wget http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/32196/cn_zh/1507811577850/ossfs_1.80.3_centos7.0_x86_64.rpm?spm=5176.doc32196.2.6.cYqVVy&amp;file=ossfs_1.80.3_centos7.0_x86_64.rpmyum localinstall ossfs_1.80.3_centos7.0_x86_64.rpm --nogpgcheck
创建bucket和OSS AccessKeyId/Secret信息将其存放在/etc/passwd-ossfs 文...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/10/30</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="将HEXO的静态博客部署到阿里云ECS"
              data-leadcloud-url="/2017/10/30/将HEXO的静态博客部署到阿里云ECS/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/10/30/将HEXO的静态博客部署到阿里云ECS/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/09/01/docker文件共享/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/09/01/docker文件共享/">
                <h2 class="article-title">docker容器文件共享</h2>
            </a>
            
            <p class="article-content">
                创建一个共享volume容器1234docker create -v /data/docker_data/share --name share alpine:3.6docker ps -aCONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS                  NAMESb55b759dd537        alpine:3.6            "/bin/sh"                59 seconds ago      Created                                    share
把共享volume挂载进容器,创建一个文件123456docke...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>docker</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/09/01</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="docker容器文件共享"
              data-leadcloud-url="/2017/09/01/docker文件共享/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/09/01/docker文件共享/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/09/01/Docker_Remore_API的使用范例/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/09/01/Docker_Remore_API的使用范例/">
                <h2 class="article-title">docker_remote_API</h2>
            </a>
            
            <p class="article-content">
                测试机docker IP:192.168.174.250内核启动的时候默认打开这三个I/O设备文件：标准输入文件stdin，标准输出文件stdout，标准错误输出文件stderr，分别得到文件描述符 0, 1, 2。   
docker server是否存活curl -s -XGET ‘http:// 192.168.174.250:2375 /_ping’   
1OK
显示docker版本信息curl -s -XGET ‘http:// 192.168.174.250:2375 /version’ | jq .
123456789101112131415161718192021&#123;  "Version": "17.06.1-ce",  "ApiVersion": "1.30",  "MinAPIVersion": "1.12",  "GitCommit": "874a73...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>docker</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/09/01</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="docker_remote_API"
              data-leadcloud-url="/2017/09/01/Docker_Remore_API的使用范例/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/09/01/Docker_Remore_API的使用范例/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/08/30/docker_swarm/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/08/30/docker_swarm/">
                <h2 class="article-title">docker swarm</h2>
            </a>
            
            <p class="article-content">
                简介swarm集群测试需要3台linux主机，Docker Engine≥1.12一台manager,二台worker
打开主机之间的协议和端口TCP端口2377用于管理集群通信TCP和UDP端口7946用于节点之间的通信UDP端口4789用于overlay网络通信
创建一个群租1docker swarm init --advertise-addr &lt;MANAGER-IP&gt;
123456Swarm initialized: current node (lo7osxc5p7u6ys2eliiehwi8l) is now a manager.To add a worker to this swarm, run the following command:docker swarm join \    --token SWMTKN-1-0rawcsshtnw487ed5mwiip...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>docker</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/08/30</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="docker swarm"
              data-leadcloud-url="/2017/08/30/docker_swarm/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/08/30/docker_swarm/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    

</ul>

<div id="page-pagination">
    <div id="page-nav">
        <a class="extend prev" rel="prev" href="/">&laquo; Prev</a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><a class="page-number" href="/page/5/">5</a><a class="extend next" rel="next" href="/page/3/">Next &raquo;</a>
    </div>
</div>

    </div>
    <footer id="footer">
    
    <div class="social">
        
        <a href="https://www.example1.com" class="fa fa-free-code-camp" target="_blank" title="freecodecamp"></a>
        
        <a href="https://github.com/werewolf2101" class="fa fa-github" target="_blank" title="Follow me~"></a>
        
        <a href="mailto:werewolf2101@gmail.com" class="fa fa-email" target="_blank" title="Email"></a>
        
    </div>
    
    <div>
        
        <a href="/" class="copyright-links">MIAbon</a>&copy;2015 - 2018.All Rights
        Reserved.
    </div>
    <p>Powered by <a href="https://hexo.io" class="copyright-links" target="_blank">Hexo</a> | Theme by <a
                href="https://github.com/GeekaholicLin" class="copyright-links" target="_blank">GeekaholicLin</a>
    </p>
    
    
    <p>
        <span id="busuanzi_container_site_uv" class="fa fa-bar-chart">
        欢迎第<span id="busuanzi_value_site_uv"><i class="fa fa-spinner fa-spin"></i></span>位小伙伴~
        </span>
    </p>
    
</footer>

</div>
    <ul id="tools">
    <li class="totop-btn fa fa-angle-up"></li>
    <li class="exchange-btn fa fa-exchange"></li>
  
    

    
</ul>
<p id="process"></p>
<div id="search-overlay">
    <div class="search-area-wrap">
        <div id="search-area">
            <div class="input-wrap focus">
                <i class="fa fa-search" aria-hidden="true"></i>
                <input id="search-input" autofocus autocomplete="off" type="text"
                       placeholder="search this website..."/>
            </div>
            <ul id="search-result">
                <li class="load-first"><i class="fa fa-spinner fa-pulse"></i></li>
            </ul>
        </div>
    </div>
</div>


    <script src="/js/highsong.js"></script>



<script src="/js/search.js"></script>
<script type="text/javascript">
    //theme config datas
    var copyrightObj = {};
    copyrightObj.enable = 'true';
    copyrightObj.triggerCopyLength = '200';
    copyrightObj.appendText = '商业转载请联系作者获得授权,非商业转载请注明出处 © gasslinks.com';
    var leancloudObj = {};
    leancloudObj.enable = 'true';
    leancloudObj.className = 'blog';
    leancloudObj.limits = '5';
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?dfebe5842f5d4196471b84802392a4b2";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript">
    var search = {};
    var search_path = "search.xml";
    if (!search_path) {
        search_path = "search.xml";
    }
    search.path = "/" + search_path;
    search.func =  _ajax.init();
</script>
<script src="/js/app.js"></script>


</body>
</html>